package com.bhh.myservlet.processor;

import com.bhh.myservlet.requestandresponse.NIORequest;
import com.bhh.myservlet.requestandresponse.NIOResponse;
import lombok.extern.slf4j.Slf4j;

import java.io.IOException;

/**
 * @author bhh
 * @description 静态资源处理 Processor,
 * <p>
 * 将Connector处理后的request和response再处理
 * @date Created in 2021-04-15 12:38
 * @modified By
 */
@Slf4j
public class NIOStaticProcessor {
    public void process(NIORequest request, NIOResponse response) {
        try {
            response.sendStaticResource();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
